<template>
  <div class="components-container">
    <tinymce v-model="content" :height="300" />
    <div v-html="content" />
  </div>
</template>

<script>
// 导入富文本编辑器
import Tinymce from '@/components/Tinymce'
export default {
  name: 'RichEditor',
  data () {
    return {
      content: '输入内容！'
    }
  },
  mounted () {
  },
  components: {Tinymce}
}
</script>

<style scoped>
  .editor-content{
    margin-top: 20px;
  }
</style>
